package com.mrd.gtimpframe.service;

import com.mrd.base.Jqgrid;
import com.mrd.framework.config.web.json.Result;
import com.mrd.gtimpframe.entity.DictionaryGroup;

import org.springframework.data.domain.Page;

import java.util.List;

public interface DictionaryGroupService {
	int deleteByPrimaryKey(String id);

	int insert(DictionaryGroup record);

	int insertSelective(DictionaryGroup record);

	DictionaryGroup selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(DictionaryGroup record);

	int updateByPrimaryKey(DictionaryGroup record);

	/**
	 * 查找所有字典组
	 * @param justValid
	 *            true：去除注销的数据 false：包含注销的数据
	 * @return List<DictionaryGroup>
	 */
	List<DictionaryGroup> selectAll(boolean justValid);

	Page<DictionaryGroup> pageListData(Jqgrid jqgrid);

	List<DictionaryGroup> dropdownList(String key);

	Result saveOrUpdate(DictionaryGroup dtg);
	DictionaryGroup selectByCode(String code);
}
